import QuestionList from "./QuestionList";
import Question from "./Question";

export default class MultiplyQuestionList extends QuestionList{
  async initData(pageId) {
    this.name='九九乘法表'
    //初始化所有题目
    for (let i=1;i<=9;i++){
      for (let j=1;j<=9;j++){
        let title=i+'×'+j
        let answer=i*j
        let item=new Question(title,answer.toString(),this.type);
        this.list.push(item)
      }
    }
  }
}
